package org.howie.controller;


import org.howie.entity.Book;
import org.howie.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignController {

    @Autowired
    private BookService bookService;

    @RequestMapping("t11")
    public String addBook(){
        bookService.addBook(new Book());
        return "success";
    }
}
